package com.atguigu.yygh.cmn.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-cmn",fallback = DictFeignClientFallback.class)
public interface DictFeignClient {

    @GetMapping("/admin/cmn/getNameByValue/{value}")
    public String getNameByValue(@PathVariable("value") String value);

    @GetMapping("/admin/cmn/getNameByParentCodeAndValue/{parentCode}/{value}")
    public String getNameByParentCodeAndValue(@PathVariable("parentCode") String parentCode ,@PathVariable("value") String value);

}
